From: Matthieu Gallien Date: Mon, 20 Jan 2025 16:05:56 +0000 (+0100) Subject: handle LNK virtual files only when VFS mode is not off X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~2^2~120^2~2 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=3a20ea871b9faa67f879168690ee597118dda15f;p=nextcloud-desktop.git handle LNK virtual files only when VFS mode is not off should ensure lnk widnows shortcut files are not mistakenly handled as virtual files Signed-off-by: Matthieu Gallien --- diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp index ad23815a4..e2305a81e 100644 --- a/src/libsync/discovery.cpp +++ b/src/libsync/discovery.cpp @@ -1662,14 +1662,14 @@ void ProcessDirectoryJob::processFileFinalize( } } - if (_discoveryData->_syncOptions._vfs && + if (_discoveryData->_syncOptions._vfs && _discoveryData->_syncOptions._vfs->mode() != OCC::Vfs::Off && (item->_type == CSyncEnums::ItemTypeFile || item->_type == CSyncEnums::ItemTypeDirectory) && item->_instruction == CSyncEnums::CSYNC_INSTRUCTION_NONE && !_discoveryData->_syncOptions._vfs->isPlaceHolderInSync(_discoveryData->_localDir + path._local)) { item->_instruction = CSyncEnums::CSYNC_INSTRUCTION_UPDATE_VFS_METADATA; } - if (_discoveryData->_syncOptions._vfs && + if (_discoveryData->_syncOptions._vfs && _discoveryData->_syncOptions._vfs->mode() != OCC::Vfs::Off && (item->_type == CSyncEnums::ItemTypeFile || item->_type == CSyncEnums::ItemTypeDirectory) && item->_instruction == CSyncEnums::CSYNC_INSTRUCTION_NONE && FileSystem::isLnkFile((_discoveryData->_localDir + path._local)) &&